#ifdef __linux__
#include <netinet/in.h>
#include <arpa/inet.h>
#endif // __linux__

#include <signal.h>

#include <iostream>

//#include <gflags/gflags.h>
#include <butil/logging.h>
#include <handler/run.h>
#include <cppbase/utility.h>
#include <filestore/bar_file.h>

DEFINE_int32(port, 8000, "server listen port");
int main(int argc, char* argv[]) {
    AppGlobal::instance()->init("../sa_config.txt");
    BarFile::set_rootpath(AppGlobal::instance()->get_config("bar_pathvm"));
    // Parse gflags. We recommend you to use gflags as well.
    GFLAGS_NS::ParseCommandLineFlags(&argc, &argv, true);
    return frpcType::run(FLAGS_port);
}
